home *** CD-ROM | disk | FTP | other *** search
- global gPictSprite, gCenterH, gCenterV
-
- on exitFrame
- if the stretch of sprite gPictSprite = 0 then
- set userH to the mouseH
- set userV to the mouseV
- set spriteWidth to the width of cast the castNum of sprite gPictSprite / 2
- set spriteHeight to the height of cast the castNum of sprite gPictSprite / 2
- set distance to 20
- set PICThModifier to ((userH < 20) - ((userH > 620) and (userV < the top of sprite 3))) * distance
- set PICTvModifier to ((userV < 20) - ((userV > (the top of sprite 3 - 21)) and (userV < the top of sprite 3))) * distance
- set newH to checkRange(the locH of sprite gPictSprite + PICThModifier, 640 - spriteWidth, spriteWidth)
- set newV to checkRange(the locV of sprite gPictSprite + PICTvModifier, the top of sprite 3 - spriteHeight, spriteHeight)
- set the locV of sprite gPictSprite to newV
- set the locH of sprite gPictSprite to newH
- updateStage()
- set PICThModifier to PICThModifier / distance * 10
- set PICTvModifier to PICTvModifier / distance * 10
- set newCursor to "Cursor " & PICThModifier & "," & PICTvModifier
- set the cursor of sprite gPictSprite to [the number of member newCursor, the number of member (newCursor & " Mask")]
- puppetSprite(gPictSprite, 1)
- go(the frame)
- puppetSprite(gPictSprite, 0)
- else
- set the cursor of sprite gPictSprite to [the number of member "Cursor 1,1", the number of member "Cursor 1,1 Mask"]
- go(the frame)
- end if
- set the cursor of sprite 3 to -1
- end
-